package com.Iron.Test;

import com.Iron.Config.SpringConfig;
import com.Iron.Service.BaseMethod;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestAopAnnotation {

    /**
     *
     * arg: 12.3
     * getBean: BeanFactory
     * @param args
     */

    public static void main(String[] args) {
        AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(SpringConfig.class);
//        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("application.xml");
        BaseMethod bean = applicationContext.getBean(BaseMethod.class);
        bean.call();
    }
}
